﻿using System;

namespace cludg.Web.Core.Security
{
	[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
	public class PermissionRequierd : Attribute
	{
		public string PermissionName { get; set; }
		public string Error { get; set; }
		public PermissionRequierd(string name, string error = "")
		{
			PermissionName = name;
			Error = error;
		}
	}
}
